package com.eulog.gwt.euloggwtlibrary.user.client.ui;

import com.google.gwt.user.client.ui.Image;

public class EulogImage2 extends Image {
	public EulogImage2(String url,boolean isPngTransparent, boolean alwayRefresh, boolean refreshTimeStamp) {
		super();
		String query = "?";
		
		if(isPngTransparent || alwayRefresh) query+="&curr="+System.currentTimeMillis();
		
		if(refreshTimeStamp) {
			//TODO, get refreshTimestamp
			String timestamp = EulogDOM.getWndVariable("timestamp");
			query+="&refreshTimeStamp="+timestamp;
		}
		
		setUrl(url + query);
	}
}
